<template>
    <van-form @submit="store.threeSubmit">
            <van-cell-group inset>
                <van-field v-model="password" 
                maxlength="11"
                placeholder="请输入密码"
                    :rules="[{ required: true, message: '请填写密码' }]" />
            </van-cell-group>
            <div style="margin: 16px;">
                <van-button  :disabled="passwordButtonIsDisabled" round block type="primary" native-type="submit">
                    下一步
                </van-button>
            </div>
        </van-form>
</template>
<script lang="ts" setup>
import { storeToRefs } from "pinia";
import { useRegisterStore } from "@/stores/register"

const store = useRegisterStore();
const {password,passwordButtonIsDisabled} = storeToRefs(store)
</script>